package com.yc.videocache.sourcestorage;

import ohos.app.Context;

/**
 * Simple factory for {@link SourceInfoStorage}.
 */

/**
 * SourceInfoStorageFactory
 *
 * @since 2021-05-10
 */
public class SourceInfoStorageFactory {
    /**
     * newSourceInfoStorage
     *
     * @param context
     * @return DatabaseSourceInfoStorage
     */
    public static SourceInfoStorage newSourceInfoStorage(Context context) {
        return new DatabaseSourceInfoStorage(context);
    }

    /**
     * newEmptySourceInfoStorage
     *
     * @return NoSourceInfoStorage
     */
    public static SourceInfoStorage newEmptySourceInfoStorage() {
        return new NoSourceInfoStorage();
    }
}
